﻿// MT559




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Little.Soldier.SWIFT.Messages.Category5
{
  public class MT559 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagChoiceDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagChoiceDefinition U0014;
    private static SwiftTagDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagDefinition U001E;
    private static SwiftTagSequenceDefinition U001F;
    private static SwiftTagDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagChoiceDefinition U0089;
    private static SwiftTagDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagDefinition U008E;
    private static SwiftTagDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagSubItemDefinition U0091;
    private static SwiftTagDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagDefinition U0094;
    private static SwiftTagSubItemDefinition U0095;
    private static SwiftTagDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagDefinition U009A;
    private static SwiftTagDefinition U009B;
    private static SwiftTagSubItemDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagDefinition U009E;
    private static SwiftTagDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagSubItemDefinition U0002U0002;
    private static SwiftTagDefinition U0003U0002;
    private static SwiftTagSubItemDefinition U0004U0002;
    private static SwiftTagSubItemDefinition U0005U0002;
    private static SwiftTagDefinition U0006U0002;
    private static SwiftTagDefinition U0007U0002;
    private static SwiftTagDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagSubItemDefinition U0011U0002;
    private static SwiftTagSubItemDefinition U0012U0002;
    private static SwiftTagDefinition U0013U0002;
    private static SwiftTagDefinition U0014U0002;

    [Description("Sum Of Net Proceeds")]
    public Tag19 SumOfNetProceeds_19
    {
      get
      {
        return new Tag19((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0002);
      }
    }

    [Description("Sum Of Net Proceeds")]
    public Tag19 Tag19_SumOfNetProceeds
    {
      get
      {
        return this.SumOfNetProceeds_19;
      }
    }

    [Description("Further Identification")]
    public Tag23 FurtherIdentification_23
    {
      get
      {
        return new Tag23((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0004);
      }
    }

    [Description("Further Identification")]
    public Tag23 Tag23_FurtherIdentification
    {
      get
      {
        return this.FurtherIdentification_23;
      }
    }

    [Description("Account For Payment")]
    public Tag53A AccountForPayment_53A
    {
      get
      {
        return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0007);
      }
    }

    [Description("Account For Payment")]
    public Tag53A Tag53A_AccountForPayment
    {
      get
      {
        return this.AccountForPayment_53A;
      }
    }

    [Description("Account For Payment")]
    public Tag53C AccountForPayment_53C
    {
      get
      {
        return new Tag53C((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U000F);
      }
    }

    [Description("Account For Payment")]
    public Tag53C Tag53C_AccountForPayment
    {
      get
      {
        return this.AccountForPayment_53C;
      }
    }

    [Description("Account For Payment")]
    public Tag53D AccountForPayment_53D
    {
      get
      {
        return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0011);
      }
    }

    [Description("Account For Payment")]
    public Tag53D Tag53D_AccountForPayment
    {
      get
      {
        return this.AccountForPayment_53D;
      }
    }

    [Description("Account With Institution")]
    public Tag57A AccountWithInstitution_57A
    {
      get
      {
        return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0015);
      }
    }

    [Description("Account With Institution")]
    public Tag57A Tag57A_AccountWithInstitution
    {
      get
      {
        return this.AccountWithInstitution_57A;
      }
    }

    [Description("Account With Institution")]
    public Tag57B AccountWithInstitution_57B
    {
      get
      {
        return new Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0018);
      }
    }

    [Description("Account With Institution")]
    public Tag57B Tag57B_AccountWithInstitution
    {
      get
      {
        return this.AccountWithInstitution_57B;
      }
    }

    [Description("Account With Institution")]
    public Tag57D AccountWithInstitution_57D
    {
      get
      {
        return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U001B);
      }
    }

    [Description("Account With Institution")]
    public Tag57D Tag57D_AccountWithInstitution
    {
      get
      {
        return this.AccountWithInstitution_57D;
      }
    }

    [Description("Sender to Receiver Information")]
    public Tag72 SenderToReceiverInformation_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U001E);
      }
    }

    [Description("Sender to Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation
    {
      get
      {
        return this.SenderToReceiverInformation_72;
      }
    }

    [Description("Transaction Reference Number")]
    public MT559.SequenceClass[] Sequence
    {
      get
      {
        int index = -1;
        List<MT559.SequenceClass> list = new List<MT559.SequenceClass>();
        int count;
        do
        {
          ++index;
          MT559.SequenceClass sequenceClass = new MT559.SequenceClass((SwiftElement) this, index, false);
          count = this.ListTags((SwiftElement) sequenceClass).Count;
          if (count > 0)
            list.Add(sequenceClass);
        }
        while (count > 0);
        return list.ToArray();
      }
    }

    public MT559()
      : base(true)
    {
    }

    public MT559(SwiftMessage message)
      : base(message)
    {
    }

    public MT559.SequenceClass AddSequence()
    {
      return new MT559.SequenceClass((SwiftElement) this, this.Sequence.Length, true);
    }

    public void RemoveSequence(MT559.SequenceClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT559.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT559.MessageDefinition = new SwiftMessageDefinition("MT559", "Paying Agent's Claim");
      MT559.U0002 = new SwiftTagDefinition("SumOfNetProceeds_19", "Sum Of Net Proceeds");
      MT559.U0002.TagName = ":19:";
      MT559.U0003 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT559.U0002.Elements.Add((SwiftDefinitionElement) MT559.U0003);
      MT559.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT559.U0002);
      MT559.U0004 = new SwiftTagDefinition("FurtherIdentification_23", "Further Identification");
      MT559.U0004.TagName = ":23:";
      MT559.U0005 = new SwiftTagSubItemDefinition("FurtherIdentification", "Further Identification");
      MT559.U0004.Elements.Add((SwiftDefinitionElement) MT559.U0005);
      MT559.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT559.U0004);
      MT559.U0006 = new SwiftTagChoiceDefinition("Choice", "");
      MT559.U0006.Mandatory = false;
      MT559.U0006.Multiple = true;
      MT559.U0007 = new SwiftTagDefinition("AccountForPayment_53A", "Account For Payment");
      MT559.U0007.TagName = ":53A:";
      MT559.U0008 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT559.U0008.Mandatory = false;
      MT559.U0007.Elements.Add((SwiftDefinitionElement) MT559.U0008);
      MT559.U000E = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT559.U0007.Elements.Add((SwiftDefinitionElement) MT559.U000E);
      MT559.U0006.Elements.Add((SwiftDefinitionElement) MT559.U0007);
      MT559.U000F = new SwiftTagDefinition("AccountForPayment_53C", "Account For Payment");
      MT559.U000F.TagName = ":53C:";
      MT559.U0010 = new SwiftTagSubItemDefinition("Account", "");
      MT559.U000F.Elements.Add((SwiftDefinitionElement) MT559.U0010);
      MT559.U0006.Elements.Add((SwiftDefinitionElement) MT559.U000F);
      MT559.U0011 = new SwiftTagDefinition("AccountForPayment_53D", "Account For Payment");
      MT559.U0011.TagName = ":53D:";
      MT559.U0012 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT559.U0012.Mandatory = false;
      MT559.U0011.Elements.Add((SwiftDefinitionElement) MT559.U0012);
      MT559.U0013 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT559.U0011.Elements.Add((SwiftDefinitionElement) MT559.U0013);
      MT559.U0006.Elements.Add((SwiftDefinitionElement) MT559.U0011);
      MT559.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT559.U0006);
      MT559.U0014 = new SwiftTagChoiceDefinition("Choice", "");
      MT559.U0014.Mandatory = false;
      MT559.U0014.Multiple = true;
      MT559.U0015 = new SwiftTagDefinition("AccountWithInstitution_57A", "Account With Institution");
      MT559.U0015.TagName = ":57A:";
      MT559.U0016 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT559.U0016.Mandatory = false;
      MT559.U0015.Elements.Add((SwiftDefinitionElement) MT559.U0016);
      MT559.U0017 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT559.U0015.Elements.Add((SwiftDefinitionElement) MT559.U0017);
      MT559.U0014.Elements.Add((SwiftDefinitionElement) MT559.U0015);
      MT559.U0018 = new SwiftTagDefinition("AccountWithInstitution_57B", "Account With Institution");
      MT559.U0018.TagName = ":57B:";
      MT559.U0019 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT559.U0019.Mandatory = false;
      MT559.U0018.Elements.Add((SwiftDefinitionElement) MT559.U0019);
      MT559.U001A = new SwiftTagSubItemDefinition("Location", "");
      MT559.U001A.Mandatory = false;
      MT559.U0018.Elements.Add((SwiftDefinitionElement) MT559.U001A);
      MT559.U0014.Elements.Add((SwiftDefinitionElement) MT559.U0018);
      MT559.U001B = new SwiftTagDefinition("AccountWithInstitution_57D", "Account With Institution");
      MT559.U001B.TagName = ":57D:";
      MT559.U001C = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT559.U001C.Mandatory = false;
      MT559.U001B.Elements.Add((SwiftDefinitionElement) MT559.U001C);
      MT559.U001D = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT559.U001B.Elements.Add((SwiftDefinitionElement) MT559.U001D);
      MT559.U0014.Elements.Add((SwiftDefinitionElement) MT559.U001B);
      MT559.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT559.U0014);
      MT559.U001E = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender to Receiver Information");
      MT559.U001E.TagName = ":72:";
      MT559.U001E.Mandatory = false;
      MT559.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT559.U001E);
      MT559.U001F = new SwiftTagSequenceDefinition("Sequence", "Transaction Reference Number");
      MT559.U001F.Multiple = true;
      MT559.U007F = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT559.U007F.TagName = ":20:";
      MT559.U0080 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT559.U007F.Elements.Add((SwiftDefinitionElement) MT559.U0080);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U007F);
      MT559.U0081 = new SwiftTagDefinition("QuantityOfSecurities_35A", "Quatity of Securities");
      MT559.U0081.TagName = ":35A:";
      MT559.U0082 = new SwiftTagSubItemDefinition("Type", "Type");
      MT559.U0081.Elements.Add((SwiftDefinitionElement) MT559.U0082);
      MT559.U0083 = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT559.U0081.Elements.Add((SwiftDefinitionElement) MT559.U0083);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0081);
      MT559.U0084 = new SwiftTagDefinition("IdentificationOfSecurities_35B", "Identification Of Securities");
      MT559.U0084.TagName = ":35B:";
      MT559.U0086 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification Of Security");
      MT559.U0086.Mandatory = false;
      MT559.U0087 = new SwiftTagSubItemDefinition("IdentificationOfSecurity_1", "Identification Of Security");
      MT559.U0086.Elements.Add((SwiftDefinitionElement) MT559.U0087);
      MT559.U0084.Elements.Add((SwiftDefinitionElement) MT559.U0086);
      MT559.U0088 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description of Security");
      MT559.U0088.Mandatory = false;
      MT559.U0084.Elements.Add((SwiftDefinitionElement) MT559.U0088);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0084);
      MT559.U0089 = new SwiftTagChoiceDefinition("Choice", "");
      MT559.U0089.Mandatory = false;
      MT559.U0089.Multiple = true;
      MT559.U008A = new SwiftTagDefinition("CouponCollected_35C", "Coupon Collected");
      MT559.U008A.TagName = ":35C:";
      MT559.U008B = new SwiftTagSubItemDefinition("Number", "Number");
      MT559.U008A.Elements.Add((SwiftDefinitionElement) MT559.U008B);
      MT559.U0089.Elements.Add((SwiftDefinitionElement) MT559.U008A);
      MT559.U008C = new SwiftTagDefinition("CouponCollected_35D", "Coupon Collected");
      MT559.U008C.TagName = ":35D:";
      MT559.U008D = new SwiftTagSubItemDefinition("Date", "Date");
      MT559.U008C.Elements.Add((SwiftDefinitionElement) MT559.U008D);
      MT559.U0089.Elements.Add((SwiftDefinitionElement) MT559.U008C);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0089);
      MT559.U008E = new SwiftTagDefinition("CertificateNumbers_35E", "Certificate Numbers");
      MT559.U008E.TagName = ":35E:";
      MT559.U008E.Mandatory = false;
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U008E);
      MT559.U008F = new SwiftTagDefinition("DividendInterestRate_35U", "Dividend / Interest Rate");
      MT559.U008F.TagName = ":35U:";
      MT559.U008F.Mandatory = false;
      MT559.U0090 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT559.U008F.Elements.Add((SwiftDefinitionElement) MT559.U0090);
      MT559.U0091 = new SwiftTagSubItemDefinition("PricePeriod", "PricePeriod");
      MT559.U008F.Elements.Add((SwiftDefinitionElement) MT559.U0091);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U008F);
      MT559.U0092 = new SwiftTagDefinition("RecordDate_31E", "Record Date");
      MT559.U0092.TagName = ":31E:";
      MT559.U0092.Mandatory = false;
      MT559.U0093 = new SwiftTagSubItemDefinition("Date", "Date");
      MT559.U0092.Elements.Add((SwiftDefinitionElement) MT559.U0093);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0092);
      MT559.U0094 = new SwiftTagDefinition("CouponClippingDate_31L", "Coupon Clipping Date");
      MT559.U0094.TagName = ":31L:";
      MT559.U0094.Mandatory = false;
      MT559.U0095 = new SwiftTagSubItemDefinition("Date", "Date");
      MT559.U0094.Elements.Add((SwiftDefinitionElement) MT559.U0095);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0094);
      MT559.U0096 = new SwiftTagDefinition("PayableDate_31C", "Payable Date");
      MT559.U0096.TagName = ":31C:";
      MT559.U0096.Mandatory = false;
      MT559.U0097 = new SwiftTagSubItemDefinition("Date", "Date");
      MT559.U0096.Elements.Add((SwiftDefinitionElement) MT559.U0097);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0096);
      MT559.U0098 = new SwiftTagDefinition("CallDate_31S", "Call Date");
      MT559.U0098.TagName = ":31S:";
      MT559.U0098.Mandatory = false;
      MT559.U0099 = new SwiftTagSubItemDefinition("Date", "Date");
      MT559.U0098.Elements.Add((SwiftDefinitionElement) MT559.U0099);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0098);
      MT559.U009A = new SwiftTagDefinition("ComponentsOfIncome_80C", "Components Of Income");
      MT559.U009A.TagName = ":80C:";
      MT559.U009A.Mandatory = false;
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U009A);
      MT559.U009B = new SwiftTagDefinition("RedemptionPrice_33T", "Redemption Price");
      MT559.U009B.TagName = ":33T:";
      MT559.U009B.Mandatory = false;
      MT559.U009C = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT559.U009B.Elements.Add((SwiftDefinitionElement) MT559.U009C);
      MT559.U009D = new SwiftTagSubItemDefinition("Price", "Price");
      MT559.U009B.Elements.Add((SwiftDefinitionElement) MT559.U009D);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U009B);
      MT559.U009E = new SwiftTagDefinition("Terms_35L", "Terms");
      MT559.U009E.TagName = ":35L:";
      MT559.U009E.Mandatory = false;
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U009E);
      MT559.U009F = new SwiftTagDefinition("RedemptionAmount_32M", "Redemption Amount");
      MT559.U009F.TagName = ":32M:";
      MT559.U009F.Mandatory = false;
      MT559.U0001U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT559.U009F.Elements.Add((SwiftDefinitionElement) MT559.U0001U0002);
      MT559.U0002U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT559.U009F.Elements.Add((SwiftDefinitionElement) MT559.U0002U0002);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U009F);
      MT559.U0003U0002 = new SwiftTagDefinition("GrossAmount_32G", "Gross Amount");
      MT559.U0003U0002.TagName = ":32G:";
      MT559.U0003U0002.Mandatory = false;
      MT559.U0004U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT559.U0003U0002.Elements.Add((SwiftDefinitionElement) MT559.U0004U0002);
      MT559.U0005U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT559.U0003U0002.Elements.Add((SwiftDefinitionElement) MT559.U0005U0002);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0003U0002);
      MT559.U0006U0002 = new SwiftTagDefinition("OtherCharges_71C", "Other Charges");
      MT559.U0006U0002.TagName = ":71C:";
      MT559.U0006U0002.Mandatory = false;
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0006U0002);
      MT559.U0007U0002 = new SwiftTagDefinition("OwnCharges_71B", "Own Charges");
      MT559.U0007U0002.TagName = ":71B:";
      MT559.U0007U0002.Mandatory = false;
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0007U0002);
      MT559.U0008U0002 = new SwiftTagDefinition("ExchangeRate_36", "Exchange Rate");
      MT559.U0008U0002.TagName = ":36:";
      MT559.U0008U0002.Mandatory = false;
      MT559.U000EU0002 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT559.U0008U0002.Elements.Add((SwiftDefinitionElement) MT559.U000EU0002);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0008U0002);
      MT559.U000FU0002 = new SwiftTagDefinition("NetProceeds_34A", "Net Proceeds");
      MT559.U000FU0002.TagName = ":34A:";
      MT559.U0010U0002 = new SwiftTagSubItemDefinition("Date", "Date");
      MT559.U000FU0002.Elements.Add((SwiftDefinitionElement) MT559.U0010U0002);
      MT559.U0011U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT559.U000FU0002.Elements.Add((SwiftDefinitionElement) MT559.U0011U0002);
      MT559.U0012U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT559.U000FU0002.Elements.Add((SwiftDefinitionElement) MT559.U0012U0002);
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U000FU0002);
      MT559.U0013U0002 = new SwiftTagDefinition("Queries_75", "Queries");
      MT559.U0013U0002.TagName = ":75:";
      MT559.U0013U0002.Mandatory = false;
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0013U0002);
      MT559.U0014U0002 = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender to Receiver Information");
      MT559.U0014U0002.TagName = ":72:";
      MT559.U0014U0002.Mandatory = false;
      MT559.U001F.Elements.Add((SwiftDefinitionElement) MT559.U0014U0002);
      MT559.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT559.U001F);
    }

    public class SequenceClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT559.U001F;
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 TransactionReferenceNumber_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U007F);
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 Tag20_TransactionReferenceNumber
      {
        get
        {
          return this.TransactionReferenceNumber_20;
        }
      }

      [Description("Quatity of Securities")]
      public Tag35A QuantityOfSecurities_35A
      {
        get
        {
          return new Tag35A((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0081);
        }
      }

      [Description("Quatity of Securities")]
      public Tag35A Tag35A_QuantityOfSecurities
      {
        get
        {
          return this.QuantityOfSecurities_35A;
        }
      }

      [Description("Identification Of Securities")]
      public Tag35B IdentificationOfSecurities_35B
      {
        get
        {
          return new Tag35B((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0084);
        }
      }

      [Description("Identification Of Securities")]
      public Tag35B Tag35B_IdentificationOfSecurities
      {
        get
        {
          return this.IdentificationOfSecurities_35B;
        }
      }

      [Description("Coupon Collected")]
      public Tag35C CouponCollected_35C
      {
        get
        {
          return new Tag35C((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U008A);
        }
      }

      [Description("Coupon Collected")]
      public Tag35C Tag35C_CouponCollected
      {
        get
        {
          return this.CouponCollected_35C;
        }
      }

      [Description("Coupon Collected")]
      public Tag35D CouponCollected_35D
      {
        get
        {
          return new Tag35D((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U008C);
        }
      }

      [Description("Coupon Collected")]
      public Tag35D Tag35D_CouponCollected
      {
        get
        {
          return this.CouponCollected_35D;
        }
      }

      [Description("Certificate Numbers")]
      public Tag35E CertificateNumbers_35E
      {
        get
        {
          return new Tag35E((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U008E);
        }
      }

      [Description("Certificate Numbers")]
      public Tag35E Tag35E_CertificateNumbers
      {
        get
        {
          return this.CertificateNumbers_35E;
        }
      }

      [Description("Dividend / Interest Rate")]
      public Tag35U DividendInterestRate_35U
      {
        get
        {
          return new Tag35U((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U008F);
        }
      }

      [Description("Dividend / Interest Rate")]
      public Tag35U Tag35U_DividendInterestRate
      {
        get
        {
          return this.DividendInterestRate_35U;
        }
      }

      [Description("Record Date")]
      public Tag31E RecordDate_31E
      {
        get
        {
          return new Tag31E((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0092);
        }
      }

      [Description("Record Date")]
      public Tag31E Tag31E_RecordDate
      {
        get
        {
          return this.RecordDate_31E;
        }
      }

      [Description("Coupon Clipping Date")]
      public Tag31L CouponClippingDate_31L
      {
        get
        {
          return new Tag31L((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0094);
        }
      }

      [Description("Coupon Clipping Date")]
      public Tag31L Tag31L_CouponClippingDate
      {
        get
        {
          return this.CouponClippingDate_31L;
        }
      }

      [Description("Payable Date")]
      public Tag31C PayableDate_31C
      {
        get
        {
          return new Tag31C((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0096);
        }
      }

      [Description("Payable Date")]
      public Tag31C Tag31C_PayableDate
      {
        get
        {
          return this.PayableDate_31C;
        }
      }

      [Description("Call Date")]
      public Tag31S CallDate_31S
      {
        get
        {
          return new Tag31S((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0098);
        }
      }

      [Description("Call Date")]
      public Tag31S Tag31S_CallDate
      {
        get
        {
          return this.CallDate_31S;
        }
      }

      [Description("Components Of Income")]
      public Tag80C ComponentsOfIncome_80C
      {
        get
        {
          return new Tag80C((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U009A);
        }
      }

      [Description("Components Of Income")]
      public Tag80C Tag80C_ComponentsOfIncome
      {
        get
        {
          return this.ComponentsOfIncome_80C;
        }
      }

      [Description("Redemption Price")]
      public MT559.SequenceClass.Tag33T RedemptionPrice_33T
      {
        get
        {
          return new MT559.SequenceClass.Tag33T((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U009B);
        }
      }

      [Description("Redemption Price")]
      public MT559.SequenceClass.Tag33T Tag33T_RedemptionPrice
      {
        get
        {
          return this.RedemptionPrice_33T;
        }
      }

      [Description("Terms")]
      public Tag35L Terms_35L
      {
        get
        {
          return new Tag35L((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U009E);
        }
      }

      [Description("Terms")]
      public Tag35L Tag35L_Terms
      {
        get
        {
          return this.Terms_35L;
        }
      }

      [Description("Redemption Amount")]
      public Tag32M RedemptionAmount_32M
      {
        get
        {
          return new Tag32M((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U009F);
        }
      }

      [Description("Redemption Amount")]
      public Tag32M Tag32M_RedemptionAmount
      {
        get
        {
          return this.RedemptionAmount_32M;
        }
      }

      [Description("Gross Amount")]
      public Tag32G GrossAmount_32G
      {
        get
        {
          return new Tag32G((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0003U0002);
        }
      }

      [Description("Gross Amount")]
      public Tag32G Tag32G_GrossAmount
      {
        get
        {
          return this.GrossAmount_32G;
        }
      }

      [Description("Other Charges")]
      public Tag71C OtherCharges_71C
      {
        get
        {
          return new Tag71C((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0006U0002);
        }
      }

      [Description("Other Charges")]
      public Tag71C Tag71C_OtherCharges
      {
        get
        {
          return this.OtherCharges_71C;
        }
      }

      [Description("Own Charges")]
      public Tag71B OwnCharges_71B
      {
        get
        {
          return new Tag71B((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0007U0002);
        }
      }

      [Description("Own Charges")]
      public Tag71B Tag71B_OwnCharges
      {
        get
        {
          return this.OwnCharges_71B;
        }
      }

      [Description("Exchange Rate")]
      public Tag36 ExchangeRate_36
      {
        get
        {
          return new Tag36((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0008U0002);
        }
      }

      [Description("Exchange Rate")]
      public Tag36 Tag36_ExchangeRate
      {
        get
        {
          return this.ExchangeRate_36;
        }
      }

      [Description("Net Proceeds")]
      public Tag34A NetProceeds_34A
      {
        get
        {
          return new Tag34A((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U000FU0002);
        }
      }

      [Description("Net Proceeds")]
      public Tag34A Tag34A_NetProceeds
      {
        get
        {
          return this.NetProceeds_34A;
        }
      }

      [Description("Queries")]
      public Tag75 Queries_75
      {
        get
        {
          return new Tag75((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0013U0002);
        }
      }

      [Description("Queries")]
      public Tag75 Tag75_Queries
      {
        get
        {
          return this.Queries_75;
        }
      }

      [Description("Sender to Receiver Information")]
      public Tag72 SenderToReceiverInformation_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT559.U0014U0002);
        }
      }

      [Description("Sender to Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation
      {
        get
        {
          return this.SenderToReceiverInformation_72;
        }
      }

      internal SequenceClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag33T : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("33T", value);
          }
        }

        public string Currency
        {
          get
          {
            string str1 = (string) null;
            string str2 = this.Value;
            if (str2 != null && str2.Length > 0)
              str1 = str2.Length <= 3 ? str2.Substring(0) : str2.Substring(0, 3);
            return str1;
          }
          set
          {
            int num1 = 0;
            int num2 = 3;
            StringBuilder stringBuilder = new StringBuilder();
            string str1 = this.Value ?? string.Empty;
            str1.PadLeft(num1, ' ');
            stringBuilder.Append(str1.Substring(0, num1));
            string str2 = ((object) value).ToString();
            if (str2.Length > num2)
              str2 = str2.Substring(0, num2);
            if (str1.Length > num1 + num2)
              str2 = str2.PadLeft(num2, ' ');
            stringBuilder.Append(str2);
            if (str1.Length > num1 + num2)
              stringBuilder.Append(str1.Substring(num1 + num2));
            this.Value = ((object) stringBuilder).ToString();
          }
        }

        internal Tag33T(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }
  }
}
